package com.gitee.srurl.core.exception;

import com.gitee.srurl.core.enums.ResponseCodeEnums;

import java.io.Serial;

/**
 * @author zxw
 * @date 2023/4/9 17:06
 */
public class JsonException extends ServiceException {

    @Serial
    private static final long serialVersionUID = -180494797242739329L;

    public JsonException(String message) {

        super(message, ResponseCodeEnums.JSON_ERROR.code());
    }

    public JsonException() {

        super(ResponseCodeEnums.JSON_ERROR);
    }
}
